]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove simple uses of ClutterRectangle
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 9 May 2013 01:53:20 +0000 (21:53 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 9 May 2013 13:49:12 +0000 (09:49 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=699975

js/ui/dnd.js
js/ui/layout.js
js/ui/overview.js
js/ui/workspace.js
js/ui/xdndHandler.js

index 5b0a334601eff6431a85b3e0a6eeef39063d9539..fab58f565487509c5fac7e41f669ea6cc675805f 100644 (file)
@@ -43,7 +43,7 @@ let dragMonitors = [];
 
 function _getEventHandlerActor() {
     if (!eventHandlerActor) {
-        eventHandlerActor = new Clutter.Rectangle({ width: 0, height: 0 });
+        eventHandlerActor = new Clutter.Actor({ width: 0, height: 0 });
         Main.uiGroup.add_actor(eventHandlerActor);
         // We connect to 'event' rather than 'captured-event' because the capturing phase doesn't happen
         // when you've grabbed the pointer.
index 67c277c1a85e7a2d2b3ff18bf8857b578fbc9b2d..7cc7d48690aa7f217a2dedd7eb519209c282d4aa 100644 (file)
@@ -1136,11 +1136,11 @@ const HotCorner = new Lang.Class({
                                              height: 3,
                                              reactive: true });
 
-            this._corner = new Clutter.Rectangle({ name: 'hot-corner',
-                                                   width: 1,
-                                                   height: 1,
-                                                   opacity: 0,
-                                                   reactive: true });
+            this._corner = new Clutter.Actor({ name: 'hot-corner',
+                                               width: 1,
+                                               height: 1,
+                                               opacity: 0,
+                                               reactive: true });
             this._corner._delegate = this;
 
             this.actor.add_child(this._corner);
index fb6b910abfb87142d77dc24b27f5af0e4aec3ece..c3ae2bbc8f3b2f5e09665eaa9f6c69a4d3cbe263 100644 (file)
@@ -147,8 +147,8 @@ const Overview = new Lang.Class({
         // During transitions, we raise this to the top to avoid having the overview
         // area be reactive; it causes too many issues such as double clicks on
         // Dash elements, or mouseover handlers in the workspaces.
-        this._coverPane = new Clutter.Rectangle({ opacity: 0,
-                                                  reactive: true });
+        this._coverPane = new Clutter.Actor({ opacity: 0,
+                                              reactive: true });
         this._overview.add_actor(this._coverPane);
         this._coverPane.connect('event', Lang.bind(this, function (actor, event) { return true; }));
 
index ee6dcfcbcc660da426126b2e9a540caa42a782df..63952083e29fef93be24306c5748bc3e0eae85d6 100644 (file)
@@ -936,7 +936,7 @@ const Workspace = new Lang.Class({
             this.actor.add_style_class_name('external-monitor');
         this.actor.set_size(0, 0);
 
-        this._dropRect = new Clutter.Rectangle({ opacity: 0 });
+        this._dropRect = new Clutter.Actor({ opacity: 0 });
         this._dropRect._delegate = this;
 
         this.actor.add_actor(this._dropRect);
index 85af2faeb36155454e58533b968308247d338e98..61e1e4db6f1f230f245b58969fb1504f66b6ef57 100644 (file)
@@ -16,7 +16,7 @@ const XdndHandler = new Lang.Class({
         this._cursorWindowClone = null;
 
         // Used as a drag actor in case we don't have a cursor window clone
-        this._dummy = new Clutter.Rectangle({ width: 1, height: 1, opacity: 0 });
+        this._dummy = new Clutter.Actor({ width: 1, height: 1, opacity: 0 });
         Main.uiGroup.add_actor(this._dummy);
         Shell.util_set_hidden_from_pick(this._dummy, true);
         this._dummy.hide();